//
// Created by Administrator on 2020/7/2.
//

#ifndef AVPLAYER_JAVACALLHELPER_H
#define AVPLAYER_JAVACALLHELPER_H
#include "macro.h"
#include <jni.h>

class JavaCallHelper {
private:
    JavaVM *javaVM;
    JNIEnv *env;
    jobject instance;
    jmethodID jvm_onPrepared,jvm_onError;
public:
    JavaCallHelper(JNIEnv *env, jobject thiz, JavaVM *javaVm);

    ~JavaCallHelper();

    void onError(int threadMode,int errorCode);

    void onPrepared(int threadMode);
};


#endif //AVPLAYER_JAVACALLHELPER_H
